pub mod game;

use crate::game::Game;

fn main() {
    let contents = std::fs::read_to_string("./day02/input.txt").unwrap();
    let games: Vec<Game> = contents.lines().map(|line| line.into()).collect();
    let sum: i32 = games.iter().map(|game| game.powers()).sum();
    println!("{sum}");
}
